<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>AddPathText</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">AddPathText()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>AddPathText</b></font>(Text$)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Add the outline of the characters in the given text to the current cursor position in 
the vector drawing path. The current position can be set with <a href="movepathcursor.html">MovePathCursor()</a>. After the 
call to this function the cursor is moved to the end of the added text. 
<br>
<br>
The <a href="drawvectortext.html">DrawVectorText()</a> function should be preferred if possible. See the below remarks for details. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Text$</i></td>
<td width="90%"> 
 
Specifies the text (single-line) to add to the drawing path. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>备注</b></p><blockquote>



Converting text to a path is an expensive operation and may result in a loss of text quality and 
even a slightly different text form (depending on the font) as compared to directly drawing the 
text to the output with <a href="drawvectortext.html">DrawVectorText()</a>. The <a href="drawvectortext.html">DrawVectorText()</a> function is more efficient and can 
make use of methods such as sub-pixel rendering to improve the text quality. Therefore, 
the <a href="addpathtext.html">AddPathText()</a> function should only be used if the text is explicitly needed as a path and not 
for simple text drawing. 

 

</blockquote><p><b>示例</b></p><blockquote>


<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">If</font></b> <font color="#3A3966">OpenWindow</font>(0, 0, 0, 400, 200, "VectorDrawing", <font color="#924B72">#PB_Window_SystemMenu</font> | <font color="#924B72">#PB_Window_ScreenCentered</font>)
<font color="#3A3966">    CanvasGadget</font>(0, 0, 0, 400, 200)
<font color="#3A3966">    LoadFont</font>(0, "Times New Roman", 20, <font color="#924B72">#PB_Font_Bold</font>)

    <b><font color="#3A3966">If</font></b> <font color="#3A3966">StartVectorDrawing</font>(<font color="#3A3966">CanvasVectorOutput</font>(0))
<font color="#3A3966">      VectorFont</font>(<font color="#3A3966">FontID</font>(0), 150)
      
<font color="#3A3966">      MovePathCursor</font>(50, 25)
<font color="#3A3966">      AddPathText</font>("Text")
      
<font color="#3A3966">      VectorSourceColor</font>(<font color="#3A3966">RGBA</font>(255, 0, 0, 255))
<font color="#3A3966">      DashPath</font>(3, 6)
    
<font color="#3A3966">      StopVectorDrawing</font>()
    <b><font color="#3A3966">EndIf</font></b>
    
    <b><font color="#3A3966">Repeat</font></b>
      Event =<font color="#3A3966"> WaitWindowEvent</font>()
    <b><font color="#3A3966">Until</font></b> Event = <font color="#924B72">#PB_Event_CloseWindow</font>
  <b><font color="#3A3966">EndIf</font></b>
</font></pre>

<p><img src="../HelpPictures/addpathtext.png"></p>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="drawvectortext.html">DrawVectorText()</a>, <a href="drawvectorparagraph.html">DrawVectorParagraph()</a>, <a href="vectortextwidth.html">VectorTextWidth()</a>, <a href="vectortextheight.html">VectorTextHeight()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=addpathline.html>AddPathLine()</a> - <a href="index.html">VectorDrawing Index</a> - <a href="beginvectorlayer.html">BeginVectorLayer()</a> -&gt;<br><br>

</body></html>